package com.lovejes.wloppor.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the T_BUSS_OPPOST table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_BUSS_OPPOST"
 */

public abstract class BaseTBussOppost  implements Serializable {

	public static String REF = "TBussOppost";
	public static String PROP_OPPORID = "Opporid";
	public static String PROP_MODIFYUSERID = "Modifyuserid";
	public static String PROP_SUBJECT = "Subject";
	public static String PROP_USERID = "Userid";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ID = "Id";
	public static String PROP_MODIFYTIME = "Modifytime";
	public static String PROP_DELFLAG = "Delflag";
	public static String PROP_POSTTIME = "Posttime";


	// constructors
	public BaseTBussOppost () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTBussOppost (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String subject;
	private java.lang.String opporid;
	private java.lang.String content;
	private java.util.Date posttime;
	private java.lang.String userid;
	private java.lang.String modifyuserid;
	private java.util.Date modifytime;
	private java.lang.String delflag;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: SUBJECT
	 */
	public java.lang.String getSubject () {
		return subject;
	}

	/**
	 * Set the value related to the column: SUBJECT
	 * @param subject the SUBJECT value
	 */
	public void setSubject (java.lang.String subject) {
		this.subject = subject;
	}



	/**
	 * Return the value associated with the column: OPPORID
	 */
	public java.lang.String getOpporid () {
		return opporid;
	}

	/**
	 * Set the value related to the column: OPPORID
	 * @param opporid the OPPORID value
	 */
	public void setOpporid (java.lang.String opporid) {
		this.opporid = opporid;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: POSTTIME
	 */
	public java.util.Date getPosttime () {
		return posttime;
	}

	/**
	 * Set the value related to the column: POSTTIME
	 * @param posttime the POSTTIME value
	 */
	public void setPosttime (java.util.Date posttime) {
		this.posttime = posttime;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: MODIFYUSERID
	 */
	public java.lang.String getModifyuserid () {
		return modifyuserid;
	}

	/**
	 * Set the value related to the column: MODIFYUSERID
	 * @param modifyuserid the MODIFYUSERID value
	 */
	public void setModifyuserid (java.lang.String modifyuserid) {
		this.modifyuserid = modifyuserid;
	}



	/**
	 * Return the value associated with the column: MODIFYTIME
	 */
	public java.util.Date getModifytime () {
		return modifytime;
	}

	/**
	 * Set the value related to the column: MODIFYTIME
	 * @param modifytime the MODIFYTIME value
	 */
	public void setModifytime (java.util.Date modifytime) {
		this.modifytime = modifytime;
	}



	/**
	 * Return the value associated with the column: DELFLAG
	 */
	public java.lang.String getDelflag () {
		return delflag;
	}

	/**
	 * Set the value related to the column: DELFLAG
	 * @param delflag the DELFLAG value
	 */
	public void setDelflag (java.lang.String delflag) {
		this.delflag = delflag;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.wloppor.domain.TBussOppost)) return false;
		else {
			com.lovejes.wloppor.domain.TBussOppost tBussOppost = (com.lovejes.wloppor.domain.TBussOppost) obj;
			if (null == this.getId() || null == tBussOppost.getId()) return false;
			else return (this.getId().equals(tBussOppost.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}